import i18n from '@/common/lang'

export const columns = [
  {
    label: i18n.t('config.material.name'),
    width: 'auto',
    prop: 'materialName',
    fixed: true
  },
  {
    label: i18n.t('config.material.code'),
    width: 'auto',
    prop: 'materialCode'
  },
  {
    label: i18n.t('config.material.remark'),
    width: 'auto',
    prop: 'remark'
  },
  {
    label: i18n.t('config.material.specs'),
    width: 'auto',
    prop: 'specs'
  },
  {
    label: i18n.t('config.materialType.name'),
    width: 'auto',
    prop: 'materialTypeName'
  },
  {
    label: i18n.t('config.material.unit'),
    width: 'auto',
    prop: 'unit'
  },
  {
    label: i18n.t('config.material.qualityFlag'),
    width: 'auto',
    prop: 'qualityFlag'
  },
  {
    label: i18n.t('config.material.state'),
    width: 'auto',
    prop: 'state'
  }
]
export const actions = [
  {
    key: 'edit',
    text: i18n.t('common.edit'),
    permissions: 'config:material:edit'
  },
  {
    key: 'delete',
    text: i18n.t('common.delete'),
    permissions: 'config:material:delete'
  }
]
